package com.jyxd.web.data.patient;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * 患者关联质控指标
 *
 */
@Entity
@Table(name = "p_patient_control")
@Data
public class PatientControl {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 病人主键id
     */
    @Column(name = "patient_id")
    private String patientId;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Column(name = "dvt_flag")
    private String  dvtFlag;
    @Column(name = "vap_flag")
    private String  vapFlag;
    @Column(name = "bunble3h_flag")
    private String  bunble3hFlag;
    @Column(name = "bunble6h_flag")
    private String  bunble6hFlag;
    //备用字段=================
    @Column(name = "bak1")
    private String  bak1;
    @Column(name = "bak2")
    private String  bak2;
    @Column(name = "bak3")
    private String  bak3;
    @Column(name = "bak4")
    private String  bak4;
    @Column(name = "bak5")
    private String  bak5;
    @Column(name = "bak6")
    private String  bak6;
    @Column(name = "bak7")
    private String  bak7;
    @Column(name = "bak8")
    private String  bak8;
    @Column(name = "bak9")
    private String  bak9;
    @Column(name = "bak10")
    private String  bak10;

}
